package TDAColaCP;

import TDAArbol.TPosition;

public class BTPos<E> implements TPosition<E> {
	private E element;
	private int index;
	
	public BTPos(E element, int index){
		this.element=element;
		this.index=index;
	}
	
	public E setElement(E element){
		E toReturn = element;
		this.element=element;
		return toReturn;
		
	}
	public int index(){
		return index;
	}
	
	public E element() {
		return element;
	}

}
